9f21308877b0ee09109d40ccceb4896d87e29180,gdx/src/com/badlogic/gdx/scenes/scene2d/ui/SelectBox.java,SelectBox,layout,#,141
Before Change
prefWidth = Math.max(
prefWidth,
maxItemWidth
+ scrollStyle.background.getLeftWidth()
+ scrollStyle.background.getRightWidth()
+ listStyle.selection.getLeftWidth()
+ listStyle.selection.getRightWidth()
After Change
prefWidth = Math.max(
prefWidth,
maxItemWidth
+ (scrollStyle.background == null ? 0 : scrollStyle.background.getLeftWidth()
+ scrollStyle.background.getRightWidth())
+ listStyle.selection.getLeftWidth()
+ listStyle.selection.getRightWidth()